//
//  AgencyDetailViewController.h
//  Portable Traffic Signal Assistor
//
//  Created by Hao Xu on 4/17/12.
//  Copyright (c) 2012 TTU. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TableSection.h"
#import "Agency.h"
#import "SubSystem.h"
#import "XMLParser.h"
#import "SubSystemDetailViewController.h"

@interface AgencyDetailViewController : UITableViewController <UIAlertViewDelegate, UITextViewDelegate, UIPickerViewDelegate>

@property (nonatomic,retain) NSMutableArray * sections;
@property (nonatomic,retain) TableSection * agencyNameSection;
@property (nonatomic,retain) TableSection * syncTimeSection;
@property (nonatomic,retain) TableSection * subSystemListSection;
@property (nonatomic,retain) NSArray *subSystemList;
@property (nonatomic,retain) UIButton *addSubSystemButton;
@property (nonatomic,retain) Agency *agency;
@property (assign) int publicSender;
@property (nonatomic,retain) UITextView * agencyNameTextView;
@property (nonatomic,retain) UIDatePicker *timePicker;
- (void) clickAddSubSystemButton:(id)sender;
- (id) initWithNibNameAndAgency:(NSString *)nibName agency:(Agency *)agency bundle:(NSBundle *)nibBundle;
- (IBAction)textViewReturn:(id)sender;

@end
